import request from '@/utils/request'

// 查询裁判文书信息列表
export function listJudge(query) {
  return request({
    url: '/system/judge/list',
    method: 'get',
    params: query
  })
}

// 查询裁判文书信息详细
export function getJudge(query) {
  return request({
    url: '/system/judge/getOne',
    method: 'get',
    params: query
  })
}

// 搜索裁判文书信息
export function searchName(searchName) {
  return request({
    url: '/system/judge/getList?searchName='+searchName,
    method: 'get',
  })
}

// 修改裁判文书信息
export function updateJudge(data) {
  return request({
    url: '/system/judge',
    method: 'put',
    data: data
  })
}

// 删除裁判文书信息
export function delJudge(id) {
  return request({
    url: '/system/judge/' + id,
    method: 'delete'
  })
}

export function getJudgeDetail(query) {
  return request({
    url: '/system/judge/detail' ,
    method: 'get',
    params: query
  })
}
